//
//  CHPopverController.h
//  TBRJL
//
//  Created by lili on 15/9/8.
//  Copyright (c) 2015年 程三. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef enum {
    CHPopverArrowDirectionCenter,
    CHPopverArrowDirectionLeft,
    CHPopverArrowDirectionRight
}CHPopverArrowDirection;

@interface CHPopverController : NSObject

- (instancetype)initWithContentViewController:(UIViewController *)viewController;

// 设置内容尺寸
@property (nonatomic) CGSize popoverContentSize;

@property(nonatomic,strong)UIImageView *popverView;
//    遮罩层按钮
@property(nonatomic,strong)UIButton *coverBtn;

// 展现- 默认在inView 的底部中心点位置 显示popver
-(void)presentPopoverInView:(UIView *)inView;

// 展现- 指定箭头方向
-(void)presentPopoverInView:(UIView *)inView arrowDirection:(CHPopverArrowDirection)arrow;

@end
